﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MvvmOrm.Models
{
    public partial class DbConnection
    {
        public void SetPragmas()
        {
            ExecuteNonQuery("PRAGMA cache_size=100000");
            ExecuteNonQuery("PRAGMA foreign_keys=ON");
            ExecuteNonQuery("PRAGMA journal_mode=WAL");
            ExecuteNonQuery("PRAGMA synchronous=1");
            ExecuteNonQuery("PRAGMA locking_mode=EXCLUSIVE");
        }
    }
}
